package com.woniuxy.ssm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/*@JsonIgnoreProperties 主要用来忽略延迟加载
* 解决错误：InvalidDefinitionException: No serializer*/
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
@Data
public class DeptEntity implements Serializable {

    private Long id;
    private String deptName;
    private String deptDesc;
    private Date createTime;

    private DeptEntity parents;

}
